

<%@ page import="com.na.onlineservey.Question" %>
<form name='gFormQuestion' id='gFormQuestion'>
  <g:hiddenField name="id" value="${questionInstance?.id}" />
  <g:hiddenField name="version" value="${questionInstance?.version}" />
  <div id="remote-content-questionInstance"></div>
  <fieldset  class="ui-state-default ui-corner-all">
    <legend class="ui-jqgrid-titlebar ui-widget-header  ui-helper-clearfix">Create Question</legend>
     <table>
      

            <tr>
              <td><g:message code="question.answeringType.label" default="Answering Type" /></td>
                <td><g:select name="answeringType.id" id="answeringType" from="${com.na.onlineservey.AnsweringType.list()}" optionKey="id" value="${questionInstance?.answeringType?.id}"  />
</td>
            </tr>
          

            <tr>
              <td><g:message code="question.description.label" default="Description" /></td>
                <td><g:textField name="description" value="${fieldValue(bean: questionInstance, field: 'description')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="question.note.label" default="Note" /></td>
                <td><g:textField name="note" value="${fieldValue(bean: questionInstance, field: 'note')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="question.project.label" default="Project" /></td>
                <td><g:select name="project.id" id="project" from="${com.na.onlineservey.Project.list()}" optionKey="id" value="${questionInstance?.project?.id}"  />
</td>
            </tr>
          

            <tr>
              <td><g:message code="question.question.label" default="Question" /></td>
                <td><g:textField name="question" value="${fieldValue(bean: questionInstance, field: 'question')}" />
</td>
            </tr>
          
         </table>
  </fieldset>
  <br/>
  <div class="buttons">
    <span class="button"><input type="button" name="create-button" id="create-button" class="ui-button ui-widget ui-state-default ui-corner-all" value="${message(code: 'default.button.create.label', default: 'Create')}" onclick="executeAjaxQuestion();"/></span>
    <span class="button"><input type='button' name="delete-button" id="delete-button" class="ui-button ui-widget ui-state-default ui-corner-all" value='Delete' onclick="deleteAjaxQuestion();"/></span>
    <span class="button"><input type="button" name="cancel-button" id="cancel-button" class="ui-button ui-widget ui-state-default ui-corner-all" onclick=" reset_form('#gFormQuestion');" value="Cancel"/></span>
  </div>
</form>
